package com.rongshu.wxapi;


import android.content.Intent;
import android.os.Bundle;

import com.umeng.socialize.weixin.view.WXCallbackActivity;
import com.utils.LogUtil;

/**
 * created by zhengweis on 2018/12/5.
 * description：
 */
public class WXEntryActivity extends WXCallbackActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        handleIntent(getIntent());
    }

    @Override
    protected void onNewIntent(Intent intent) {
        super.onNewIntent(intent);
        handleIntent(intent);
    }

    private void handleIntent(Intent intent) {
        if (intent != null) {
            Bundle extras = intent.getExtras();
            if (extras != null){
                LogUtil.i(extras.toString());
            }
        }
    }
}
